import minimist from 'minimist'
import { fileURLToPath } from 'url';
import { resolve, dirname } from 'path'

const args = minimist(process.argv.slice(2))

const target = args._[0] || "reactivity" // 打包目录
const format = args.f || 'iife' // 打包后的模块格式

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

console.log(args)
console.log(__filename, __dirname)
console.log(resolve(__dirname, `../packages/${target}/scr/index.ts`))